﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace Songhay.Web.BiggestBox
{
    public class RouteConfig
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.RouteExistingFiles = false;
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
            routes.IgnoreRoute("Services/{*pathInfo}");

            routes.MapRoute(
                "ClientMode",                                                                    // Route name
                "Mode/{option}",                                                                 // URL with parameters
                new { controller = "Client", action = "Client", option = UrlParameter.Optional } // Parameter defaults
            );
            routes.MapRoute(
                "Default",                                                                       // Route name
                "{controller}/{action}/{option}",                                                // URL with parameters
                new { controller = "Client", action = "Client", option = UrlParameter.Optional } // Parameter defaults
            );
        }
    }
}